home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13276 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  36 lines

  1. Path: dfw.dfw.net!not-for-mail
  2. From: ftlgeuse@dfw.dfw.net (Azazel Diabolus            (aka Fetelgeuse))
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Settle a bet please
  5. Date: 4 Apr 1996 01:07:28 GMT
  6. Organization: DFW Internet Services - DFWNet: 800-2-DFWNet
  7. Message-ID: <4jv7cg$mr9@fnord.dfw.net>
  8. References: <4jfopb$o9n@news1.sympatico.ca> <4jh8rtINNosd@mayne.ugrad.cs.ubc.ca> <3160ad03.4340531@netline-fddi.jpl.nasa.gov> <4jqm9m$b0j@fnord.dfw.net> <4jttr0$3qh@solutions.solon.com>
  9. NNTP-Posting-Host: dfw.dfw.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Peter Seebach (seebs@solutions.solon.com) wrote:
  13. : In article <4jqm9m$b0j@fnord.dfw.net>,
  14. : Azazel Diabolus            (aka Fetelgeuse) <ftlgeuse@dfw.dfw.net> wrote:
  15. : >Perhaps we need to start a comp.lang.c.borland so that you ANSI C purists 
  16. : >won't be bothered by those of us who are used to having a NULL defined in 
  17. : >our stdio.h. Or maybe a comp.lang.c.K&R.worshippers? :)
  18. : But NULL *is* #defined in <stdio.h>.  (Don't feel bad, I got this wrong
  19.  
  20. ??? Didn't I say that? "those of us who are used to having stdio.h 
  21. defined in stdio.h" Yeah, I said that. My beef was how everyone had to 
  22. say "Not nul...null!" or "Not NULL, NUL" etc.
  23. : some time last year, until Dan set me straight.)  It's just that NULL may
  24. : or may not be something you can assign into a character, so it's not a
  25. : suitable string terminator.
  26. I guess NUL (I'm talking ASCII, guys, so don't yell at me!) is often 
  27. confused (at least when speaking) with NULL. It's easy to do from things 
  28. like 
  29. if(soandso != 0) 
  30. and 
  31. if(fptr=(fopen("filename.ext","r")!=NULL)
  32. we (at least me..) might be thinking similar things when we write things 
  33. like that. 
  34.  
  35.